package com.itsc.entities;

import java.util.HashSet;
import java.util.Set;

public class Permission {

	private Integer per_id;		//编号
	private String per_name;	//权限名称
	private String per_url;		//权限路径
	private Integer parent_id;	//权限菜单自连id
	private String per_des;		//描述
	
	private Permission parent;//自连一对多
	private Set<Role> roleSet = new HashSet<Role>();//多对多，一个权限对用多个角色
	private Set<Permission> perSet = new HashSet<Permission>();//自连一对多
	public Integer getPer_id() {
		return per_id;
	}
	public void setPer_id(Integer per_id) {
		this.per_id = per_id;
	}
	public String getPer_name() {
		return per_name;
	}
	public void setPer_name(String per_name) {
		this.per_name = per_name;
	}
	public String getPer_url() {
		return per_url;
	}
	public void setPer_url(String per_url) {
		this.per_url = per_url;
	}
	public Integer getParent_id() {
		return parent_id;
	}
	public void setParent_id(Integer parent_id) {
		this.parent_id = parent_id;
	}
	public Permission getParent() {
		return parent;
	}
	public void setParent(Permission parent) {
		this.parent = parent;
	}
	public Set<Role> getRoleSet() {
		return roleSet;
	}
	public void setRoleSet(Set<Role> roleSet) {
		this.roleSet = roleSet;
	}
	public String getPer_des() {
		return per_des;
	}
	public void setPer_des(String per_des) {
		this.per_des = per_des;
	}
	public Set<Permission> getPerSet() {
		return perSet;
	}
	public void setPerSet(Set<Permission> perSet) {
		this.perSet = perSet;
	}
	
	
}
